<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0065)http://115.28.87.22:8888/business/BusinessProfitSearchResult.html -->
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>业务单成本表 | 管理易-广告加工制作管理软件  企业版 9.28  | 易凯软件</title>
<script src="../js/minierp.js"></script>

<link href="../css/Query.css" rel="stylesheet" type="text/css">
<link href="../css/dhtmlgoodies_calendar.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="../css/BillList.css">
<script src="../js/QueryList.js"></script>
<script src="../js/popup_ext.js"></script>
<script src="../js/dhtmlgoodies_calendar.js"></script>
<script language="javascript">
	function doShow(id){
		var url="../business/BusinessBillEdit.html?id="+id;
		ShowIframe("业务单",url,1280,600,"refreshWin()",900,600);
	}
	function refreshWin(){
		if(popRetVal!=null){
			window.location.reload(true);
		}
	}
	function createPageParaStr(){
		var str="start_date="+encodeURIComponent(document.getElementById("start_date").value);
		str=str+"&end_date="+encodeURIComponent(document.getElementById("end_date").value);
		str=str+"&clos_start="+encodeURIComponent(document.getElementById("clos_start").value);
		str=str+"&clos_end="+encodeURIComponent(document.getElementById("clos_end").value);
		
		var comp="A";
		if(document.getElementById("comp1").checked){
			comp="Y";
		}else if(document.getElementById("comp2").checked){
			comp="N";
		}
		str=str+"&comp="+comp;
		
		var deli="A";
		if(document.getElementById("deli1").checked){
			deli="Y";
		}else if(document.getElementById("deli2").checked){
			deli="P";
		}else if(document.getElementById("deli3").checked){
			deli="N";
		}
		str=str+"&deli="+deli;
		
		var clos="A";
		if(document.getElementById("clos1").checked){
			clos="Y";
		}else if(document.getElementById("clos2").checked){
			clos="N";
		}
		str=str+"&clos="+clos;
		
		str=str+"&mng_id="+encodeURIComponent(document.getElementById("mng_id").value);
		str=str+"&mng_name="+encodeURIComponent(document.getElementById("mng_name").value);
		str=str+"&est_id="+encodeURIComponent(document.getElementById("est_id").value);
		str=str+"&est_name="+encodeURIComponent(document.getElementById("est_name").value);
		str=str+"&desi_id="+encodeURIComponent(document.getElementById("desi_id").value);
		str=str+"&desi_name="+encodeURIComponent(document.getElementById("desi_name").value);
		str=str+"&crea_id="+encodeURIComponent(document.getElementById("crea_id").value);
		str=str+"&crea_name="+encodeURIComponent(document.getElementById("crea_name").value);
		str=str+"&cont="+encodeURIComponent(document.getElementById("cont").value);
		str=str+"&bill_code="+encodeURIComponent(document.getElementById("bill_code").value);
		str=str+"&min_cont_cost="+encodeURIComponent(document.getElementById("min_cont_cost").value.trim());
		str=str+"&max_cont_cost="+encodeURIComponent(document.getElementById("max_cont_cost").value.trim());
		str=str+"&min_prof_cost="+encodeURIComponent(document.getElementById("min_prof_cost").value.trim());
		str=str+"&max_prof_cost="+encodeURIComponent(document.getElementById("max_prof_cost").value.trim());
		str=str+"&min_prof_perc="+encodeURIComponent(document.getElementById("min_prof_perc").value.trim());
		str=str+"&max_prof_perc="+encodeURIComponent(document.getElementById("max_prof_perc").value.trim());
		str=str+"&cont_code="+encodeURIComponent(document.getElementById("cont_code").value);
		str=str+"&ts_id="+document.getElementById("ts_id").value;
		str=str+"&intr_id="+encodeURIComponent(document.getElementById("intr_id").value);
		str=str+"&intr_name="+encodeURIComponent(document.getElementById("intr_name").value);
		str=str+"&foll_id="+encodeURIComponent(document.getElementById("foll_id").value);
		str=str+"&foll_name="+encodeURIComponent(document.getElementById("foll_name").value);
		str=str+"&department="+document.getElementById("department").value;
		str=str+"&order_by="+document.getElementById("order_by").value;
		str=str+"&order_sc="+document.getElementById("order_sc").value;
		return str;
	}
	
	function createProgramParaStr(){
		var str="start_date="+encodeURIComponent(document.getElementById("hid_start_date").value);
		str=str+"&end_date="+encodeURIComponent(document.getElementById("hid_end_date").value);
		str=str+"&clos_start="+encodeURIComponent(document.getElementById("hid_clos_start").value);
		str=str+"&clos_end="+encodeURIComponent(document.getElementById("hid_clos_end").value);
		str=str+"&comp=";
		str=str+"&deli=";
		str=str+"&clos=";
		str=str+"&mng_id=";
		str=str+"&est_id=";
		str=str+"&desi_id=";
		str=str+"&crea_id=";
		str=str+"&intr_id=";
		str=str+"&foll_id=";
		str=str+"&mng_name="+encodeURIComponent(document.getElementById("hid_mng_name").value);
		str=str+"&est_name="+encodeURIComponent(document.getElementById("hid_est_name").value);
		str=str+"&desi_name="+encodeURIComponent(document.getElementById("hid_desi_name").value);
		str=str+"&crea_name="+encodeURIComponent(document.getElementById("hid_crea_name").value);
		str=str+"&intr_name="+encodeURIComponent(document.getElementById("hid_intr_name").value);
		str=str+"&foll_name="+encodeURIComponent(document.getElementById("hid_foll_name").value);
		str=str+"&bill_code="+encodeURIComponent(document.getElementById("hid_bill_code").value);
		str=str+"&cont="+encodeURIComponent(document.getElementById("hid_cont").value);
		str=str+"&min_cont_cost="+encodeURIComponent(document.getElementById("hid_min_cont_cost").value);
		str=str+"&max_cont_cost="+encodeURIComponent(document.getElementById("hid_max_cont_cost").value);
		str=str+"&min_prof_cost="+encodeURIComponent(document.getElementById("hid_min_prof_cost").value);
		str=str+"&max_prof_cost="+encodeURIComponent(document.getElementById("hid_max_prof_cost").value);
		str=str+"&min_prof_perc="+encodeURIComponent(document.getElementById("hid_min_prof_perc").value);
		str=str+"&max_prof_perc="+encodeURIComponent(document.getElementById("hid_max_prof_perc").value);
		str=str+"&cont_code="+encodeURIComponent(document.getElementById("hid_cont_code").value);
		str=str+"&ts_id=1";
		str=str+"&department=";
		str=str+"&order_by=";
		str=str+"&order_sc=";
		return str;
	}
	function doSearch(){
		var str;
		if(IsAdvSearch){//高级
			str="search_type=1";
			if(document.getElementById("cb_order_date").checked){
				if(!checkDateStr(document.getElementById("start_date").value,"订货开始日期")){
					return;
				}
				if(!checkDateStr(document.getElementById("end_date").value,"订货结束日期")){
					return;
				}
				str=str+"&cb_order_date=1";
			}
			if(document.getElementById("cb_clos_time").checked){
				if(!checkDateStr(document.getElementById("clos_start").value,"结清开始日期")){
					return;
				}
				if(!checkDateStr(document.getElementById("clos_end").value,"结清结束日期")){
					return;
				}
				str=str+"&cb_clos_time=1";
			}
			if(document.getElementById("cb_comp").checked){
				str=str+"&cb_comp=1";
			}
			if(document.getElementById("cb_deli").checked){
				str=str+"&cb_deli=1";
			}
			if(document.getElementById("cb_clos").checked){
				str=str+"&cb_clos=1";
			}
			if(document.getElementById("cb_intr").checked){
				var intrId=document.getElementById("intr_id").value;
				if(intrId==null || intrId=="" || intrId=="0"){
					ShowAlert('提示框','请选择业务来源',200,100);
					return;
				}
				str=str+"&cb_intr=1";
			}
			if(document.getElementById("cb_mng").checked){
				var mngId=document.getElementById("mng_id").value;
				if(mngId==null || mngId=="" || mngId=="0"){
					ShowAlert('提示框','请选择业务员',200,100);
					return;
				}
				str=str+"&cb_mng=1";
			}
			if(document.getElementById("cb_foll").checked){
				var follId=document.getElementById("foll_id").value;
				if(follId==null || follId=="" || follId=="0"){
					ShowAlert('提示框','请选择跟单员',200,100);
					return;
				}
				str=str+"&cb_foll=1";
			}
			if(document.getElementById("cb_desi").checked){
				var desiId=document.getElementById("desi_id").value;
				if(desiId==null || desiId=="" || desiId=="0"){
					ShowAlert('提示框','请选择设计员',200,100);
					return;
				}
				str=str+"&cb_desi=1";
			}
			if(document.getElementById("cb_crea").checked){
				var creaId=document.getElementById("crea_id").value;
				if(creaId==null || creaId=="" || creaId=="0"){
					ShowAlert('提示框','请选择开单人',200,100);
					return;
				}
				str=str+"&cb_crea=1";
			}
			if(document.getElementById("cb_est").checked){
				var estId=document.getElementById("est_id").value;
				if(estId==null || estId==""){
					ShowAlert('提示框','请选择客户',200,100);
					return;
				}
				str=str+"&cb_est=1";
			}
			if(document.getElementById("cb_bill_code").checked){
				var billCode=document.getElementById("bill_code").value.trim();
				if(billCode==null || billCode==""){
					ShowAlert('提示框','请输入业务单号',200,100);
					return;
				}
				str=str+"&cb_bill_code=1";
			}
			if(document.getElementById("cb_cont").checked){
				var cont=document.getElementById("cont").value.trim();
				if(cont==null || cont==""){
					ShowAlert('提示框','请输入摘要',200,100);
					return;
				}
				str=str+"&cb_cont=1";
			}
			if(document.getElementById("cb_cont_cost").checked){
				var minContCost=document.getElementById("min_cont_cost").value.trim();
				if(minContCost==null || minContCost==""){
					ShowAlert('提示框','请输入合同最小金额',200,100);
					return;
				}else if(isNaN(minContCost)){
					ShowAlert('提示框','合同最小金额只能是数字',200,100);
					return;
				}
				var maxContCost=document.getElementById("max_cont_cost").value.trim();
				if(maxContCost==null || maxContCost==""){
					ShowAlert('提示框','请输入合同最大金额',200,100);
					return;
				}else if(isNaN(maxContCost)){
					ShowAlert('提示框','合同最大金额只能是数字',200,100);
					return;
				}
				str=str+"&cb_cont_cost=1";
			}
			if(document.getElementById("cb_prof_cost").checked){
				var minProfCost=document.getElementById("min_prof_cost").value.trim();
				if(minProfCost==null || minProfCost==""){
					ShowAlert('提示框','请输入毛利最小金额',200,100);
					return;
				}else if(isNaN(minProfCost)){
					ShowAlert('提示框','毛利最小金额只能是数字',200,100);
					return;
				}
				var maxProfCost=document.getElementById("max_prof_cost").value.trim();
				if(maxProfCost==null || maxProfCost==""){
					ShowAlert('提示框','请输入毛利最大金额',200,100);
					return;
				}else if(isNaN(maxProfCost)){
					ShowAlert('提示框','毛利最大金额只能是数字',200,100);
					return;
				}
				str=str+"&cb_prof_cost=1";
			}
			if(document.getElementById("cb_prof_perc").checked){
				var minProfPerc=document.getElementById("min_prof_perc").value.trim();
				if(minProfPerc==null || minProfPerc==""){
					ShowAlert('提示框','请输入毛利率最小值',200,100);
					return;
				}else if(isNaN(minProfPerc)){
					ShowAlert('提示框','毛利率最小值只能是数字',200,100);
					return;
				}
				var maxProfPerc=document.getElementById("max_prof_perc").value.trim();
				if(maxProfPerc==null || maxProfPerc==""){
					ShowAlert('提示框','请输入毛利率最大值',200,100);
					return;
				}else if(isNaN(maxProfPerc)){
					ShowAlert('提示框','毛利率最大值只能是数字',200,100);
					return;
				}
				str=str+"&cb_prof_perc=1";
			}
			if(document.getElementById("cb_cont_code").checked){
				var contCode=document.getElementById("cont_code").value.trim();
				if(contCode==null || contCode==""){
					ShowAlert('提示框','请输入合同号',200,100);
					return;
				}
				str=str+"&cb_cont_code=1";
			}
			if(document.getElementById("cb_dep").checked){
				var department=document.getElementById("department").value;
				if(department==null || department=="" || department=="0"){
					ShowAlert('提示框','请选择部门',200,100);
					return;
				}
				str=str+"&cb_dep=1";
			}
			if(document.getElementById("cb_ts").checked){
				var tsId=document.getElementById("ts_id").value;
				if(tsId==null || tsId=="" || tsId=="0"){
					ShowAlert('提示框','请选择帐套',200,100);
					return;
				}
				str=str+"&cb_ts=1";
			}
			if(document.getElementById("cb_order").checked){
				var orderBy=document.getElementById("order_by").value;
				if(orderBy==null || orderBy==""){
					ShowAlert('提示框','请选择排序类型',200,100);
					return;
				}
				str=str+"&cb_order=1";
			}
		}else{//快速
			str="search_type=2";
			if(!checkDateStr(document.getElementById("start_date").value,"订货开始日期")){
				return;
			}
			if(!checkDateStr(document.getElementById("end_date").value,"订货结束日期")){
				return;
			}
		}
		var paraStr=createPageParaStr();
		if(paraStr!=""){
			str=str+"&"+paraStr;
		}
		window.location="../business/BusinessProfitSearchResult.html?"+str;
	}
	function doGo(pageIndex){
		var str=getSearchCondition();
		str=str+"&current_page="+pageIndex;
		window.location="../business/BusinessProfitSearchResult.html?"+str;
	}
	function getSearchCondition(){
		var searchType="1";
		var str="search_type="+searchType;
		if(searchType=="1"){//高级
			str=str+"&cb_order_date=1";
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			str=str+"&cb_ts=1";
			
			
		}else{//快速
			
		}
		var paraStr=createProgramParaStr();
		if(paraStr!=""){
			str=str+"&"+paraStr;
		}
		return str;
	}
	function doJump(pageIndex){
		if(window.event.keyCode==13){
			doGo(pageIndex);
		}
	}
	function DoubleClick(it){
		var ob_arr = document.getElementsByName("query_checkbox");
		var id="";
		if(ob_arr.length>=it.getAttribute("index")){
			id=ob_arr[it.getAttribute("index")-1].value;
		}
		if(id==""){
			return;
		}
		doShow(id);
	}
	function doCancel(){
		window.close();
	}
	function doInit(){
		Window_Onload();
	}
	function checkInput(){
		if(window.event.keyCode==13){
			doSearch();
		}
	}
	function doCooperList(billId){
		document.getElementById("detailFrm").src="../cooper/CooperBillItemListForBusinessBill.html?id="+billId;
	}
	function doAdjustList(billId){
		document.getElementById("detailFrm").src="../finance/AdjustBillItemListForBusinessBill.html?examined=Y&id="+billId;
	}
	function doFeeList(bbId){
		document.getElementById("detailFrm").src="../finance/FeeBillListForBusinessBill.html?bb_id="+bbId;
	}
	function doInOutList(billCode){
		document.getElementById("detailFrm").src="../storehouse/InOutItemListForBusinessBill.html?show_cost=1&business_bill_code="+encodeURIComponent(billCode);
	}
	function showDetail(billId){
		showWin(1024,600,"../business/BusinessProfitDetail.html?id="+billId);
	}
	
	function doAutoCheck(objId){
		document.getElementById(objId).checked=true;
	}
	function selectStafferName(idObjId,nameObjId,checkObjId){
		var url="../base/StafferMainForSelect.html";
		ShowIframe("选择员工",url,800,500,"selectStafferNameCallBack('"+idObjId+"','"+nameObjId+"','"+checkObjId+"')");
	}
	function selectStafferNameCallBack(idObjId,nameObjId,checkObjId){
		if(popRetVal!=null){
			var arr=popRetVal.split(";");
			document.getElementById(idObjId).value=arr[0];
			document.getElementById(nameObjId).value=arr[1];
			doAutoCheck(checkObjId);
		}
	}
	function selectEstName(){
		var url="../base/EstablishmentListForSelect.html?type=CLIENT";
		ShowIframe("选择客户",url,900,500,"selectEstNameCallBack()");
	}
	function selectEstNameCallBack(){
		if(popRetVal!=null){
			document.getElementById("est_id").value=popRetVal[0];
			document.getElementById("est_name").value=popRetVal[1];
			doAutoCheck("cb_est");
		}
	}
	function doDownload(){
		var str=getSearchCondition();
		window.location="../business/BusinessProfitSearchResult.html?content_type=EXCEL&"+str;
	}
	function setDate(type){
		var d=new Date();
		var startStr="";
		var endStr="";
		if(type=="CURRENT_MONTH"){
			startStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-01";
			endStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
		}else if(type=="PREVIEW_MONTH"){
			d=new Date(d.getFullYear(),d.getMonth(),1);
			d.setDate(d.getDate()-1);
			startStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-1";
			endStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
		}else if(type=="TODAY"){
			startStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
			endStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
		}else if(type=="YESTERDAY"){
			d.setDate(d.getDate()-1);
			startStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
			endStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
		}
		document.getElementById("start_date").value=startStr;
		document.getElementById("end_date").value=endStr;
		doAutoCheck("cb_order_date");
	}
	function showRelBill(code){
		showWin(1024,600,"../business/BusinessRelBillList.html?code="+encodeURIComponent(code));
	}
</script>
</head>
<body oncontextmenu="return false">
<div class="Wrap"><!-- 页面主框架 -->
    
	<div id="ListContainer" class="Container" style="width: 971px;"><!-- 主体容器 -->
	    
	    <!-- 标题栏 -->
	    <div class="Heading BillIcon">
	        <div class="HeadingContent">
	            <h1>业务单成本表</h1>
	            <span class="Note">统计业务单的材料成本、外协成本、费用，计算出业务单的毛利</span>
	        </div>
	    </div>
	
		<!-- 主内容 -->
		<div class="Content">
	        <!-- 筛选控件栏 -->
	        <div class="FilterBar ClearFix">
	            <div class="SearchIcon"></div>
	            <span class="fl">
	            	<table class="MoreOption" cellpadding="0" cellspacing="0">
	            		<tbody><tr><th class="c1" width="80px">
	            			<input type="checkbox" name="cb_order_date" id="cb_order_date" checked="true" style="visibility:hidden;">
	            			订货日期
	            		</th>
	            		<td width="360px">
	            			<input type="text" class="TextBox Datetime" maxlength="15" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_order_date&#39;);" id="start_date" name="start_date" value="2017-07-01">
			            	<img src="../images/calendar.gif" class="imgIconButton" onclick="displayCalendar(document.getElementById(&#39;start_date&#39;),&#39;yyyy-mm-dd&#39;,this,false,&#39;doAutoCheck(\&#39;cb_order_date\&#39;)&#39;);">
			            	<input type="hidden" id="hid_start_date" value="2017-07-01">
			            	至
			            	<input type="text" class="TextBox Datetime" maxlength="15" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_order_date&#39;);" id="end_date" name="end_date" value="2017-07-09">
			            	<img src="../images/calendar.gif" class="imgIconButton" onclick="displayCalendar(document.getElementById(&#39;end_date&#39;),&#39;yyyy-mm-dd&#39;,this,false,&#39;doAutoCheck(\&#39;cb_order_date\&#39;)&#39;);">
			            	<input type="hidden" id="hid_end_date" value="2017-07-09">
			            	<a href="javascript:setDate(&#39;CURRENT_MONTH&#39;);">本月</a>
							<a href="javascript:setDate(&#39;TODAY&#39;);">今天</a>
							<a href="javascript:setDate(&#39;YESTERDAY&#39;);">昨天</a>
							<a href="javascript:setDate(&#39;PREVIEW_MONTH&#39;);">上月</a>
	            		</td>
	            	</tr></tbody></table>
	            </span>
				<span class="fr">
	            	<a href="javascript:;" id="lnkMoreOption">更多查询选项</a>
		  			<input type="button" value=" 查 询" onclick="doSearch();" class="buttom search-but" id="sSearchButton" name="sSearchButton">
		  			<input type="button" value=" 导 出" onclick="doDownload();" class="buttom search-out" id="sDownloadButton" name="sDownloadButton">
	            </span>
				<div id="dvMoreOptionBox" class="MoreOptionBox" style="display:none;">
					<table class="MoreOption" cellpadding="0" cellspacing="0">
						<tbody><tr>
							<th class="c1" width="80px">
			        			<input type="checkbox" name="cb_clos_time" id="cb_clos_time">
			        			结清日期
			        		</th>
			    			<td width="260px">
			        			<input type="text" class="TextBox Datetime" maxlength="15" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_clos_time&#39;);" id="clos_start" name="clos_start" value="2017-06-01">
				            	<img src="../images/calendar.gif" class="imgIconButton" onclick="displayCalendar(document.getElementById(&#39;clos_start&#39;),&#39;yyyy-mm-dd&#39;,this,false,&#39;doAutoCheck(\&#39;cb_clos_time\&#39;)&#39;);">
				            	<input type="hidden" id="hid_clos_start" value="2017-06-01">
				            	至
				            	<input type="text" class="TextBox Datetime" maxlength="15" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_clos_time&#39;);" id="clos_end" name="clos_end" value="2017-06-30">
				            	<img src="../images/calendar.gif" class="imgIconButton" onclick="displayCalendar(document.getElementById(&#39;clos_end&#39;),&#39;yyyy-mm-dd&#39;,this,false,&#39;doAutoCheck(\&#39;cb_clos_time\&#39;)&#39;);">
				            	<input type="hidden" id="hid_clos_end" value="2017-06-30">
			    			</td>
			    			<th class="c2" width="80px">
			        			<input type="checkbox" name="cb_comp" id="cb_comp">
			        			完工状态
			        		</th>
			    			<td class="c2" width="280px">
			        			<input type="radio" name="comp" id="comp1" onclick="doAutoCheck(&#39;cb_comp&#39;);">已完工
								<input type="radio" name="comp" id="comp2" onclick="doAutoCheck(&#39;cb_comp&#39;);">未完工
								<input type="radio" name="comp" id="comp3" onclick="doAutoCheck(&#39;cb_comp&#39;);" checked="true">全部
			    			</td>
			    		</tr>
			    		<tr>
			    			<th class="c1">
			        			<input type="checkbox" name="cb_est" id="cb_est">
			        			客户
			        		</th>
			    			<td class="c1">
			        			<input type="text" class="TextBox readonly" readonly="true" maxlength="15" name="est_name" id="est_name" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_est&#39;);" value="">
								<img class="imgIconButton" src="../images/make-a.gif" onclick="selectEstName();">
								<input type="hidden" id="est_id" value="">
								<input type="hidden" id="hid_est_name" value="">
			    			</td>
							<th class="c2">
			        			<input type="checkbox" name="cb_deli" id="cb_deli">
			        			送货状态
			        		</th>
			    			<td class="c3">
			        			<input type="radio" name="deli" id="deli1" onclick="doAutoCheck(&#39;cb_deli&#39;);">已送完
								<input type="radio" name="deli" id="deli2" onclick="doAutoCheck(&#39;cb_deli&#39;);">未送完
								<input type="radio" name="deli" id="deli3" onclick="doAutoCheck(&#39;cb_deli&#39;);">未送货
								<input type="radio" name="deli" id="deli4" onclick="doAutoCheck(&#39;cb_deli&#39;);" checked="true">全部
			    			</td>
						</tr>
						<tr>
			    			<th class="c1">
			        			<input type="checkbox" name="cb_cont_code" id="cb_cont_code">
			        			合同号
			        		</th>
			        		<td class="c1">
			        			<input type="text" class="TextBox" maxlength="50" name="cont_code" id="cont_code" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_cont_code&#39;);" value="">
								<input type="hidden" id="hid_cont_code" value="">
			    			</td>
							<th class="c2">
			        			<input type="checkbox" name="cb_clos" id="cb_clos">
			        			结清状态
			        		</th>
			    			<td class="c3">
			        			<input type="radio" name="clos" id="clos1" onclick="doAutoCheck(&#39;cb_clos&#39;);">已结清
								<input type="radio" name="clos" id="clos2" onclick="doAutoCheck(&#39;cb_clos&#39;);">未结清
								<input type="radio" name="clos" id="clos3" onclick="doAutoCheck(&#39;cb_clos&#39;);" checked="true">全部
			    			</td>
						</tr>
						<tr>
							<th class="c1">
			        			<input type="checkbox" name="cb_bill_code" id="cb_bill_code">
			        			业务单号
			        		</th>
			        		<td class="c1">
			        			<input type="text" class="TextBox" maxlength="50" name="bill_code" id="bill_code" onfocus="doAutoCheck(&#39;cb_bill_code&#39;);" onkeyup="checkInput();" value="">
								<input type="hidden" id="hid_bill_code" value="">
			    			</td>
			    			<th class="c2">
			        			<input type="checkbox" name="cb_intr" id="cb_intr">
			        			业务来源
			        		</th>
			    			<td class="c3">
			        			<input type="text" class="TextBox readonly" readonly="true" maxlength="15" name="intr_name" id="intr_name" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_intr&#39;);" value="">
			        			<img class="imgIconButton" src="../images/make-a.gif" onclick="selectStafferName(&#39;intr_id&#39;,&#39;intr_name&#39;,&#39;cb_intr&#39;);">
								<input type="hidden" id="hid_intr_name" value="">
								<input type="hidden" id="intr_id" value="">
			    			</td>
			    		</tr>
			    		<tr>
			    			<th class="c1">
			        			<input type="checkbox" name="cb_cont" id="cb_cont">
			        			摘要
			        		</th>
			        		<td class="c1">
			        			<input type="text" class="TextBox" maxlength="50" name="cont" id="cont" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_cont&#39;);" value="">
								<input type="hidden" id="hid_cont" value="">
			    			</td>
			    			<th class="c2">
			        			<input type="checkbox" name="cb_mng" id="cb_mng">
			        			业务员
			        		</th>
			    			<td class="c3">
			        			<input type="text" class="TextBox readonly" readonly="true" maxlength="15" name="mng_name" id="mng_name" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_mng&#39;);" value="">
			        			<img class="imgIconButton" src="../images/make-a.gif" onclick="selectStafferName(&#39;mng_id&#39;,&#39;mng_name&#39;,&#39;cb_mng&#39;);">
								<input type="hidden" id="hid_mng_name" value="">
								<input type="hidden" id="mng_id" value="">
			    			</td>
			    		</tr>
			    		<tr>
			    			<th class="c1">
			        			<input type="checkbox" name="cb_cont_cost" id="cb_cont_cost">
			        			合同金额
			        		</th>
			    			<td>
			        			<input type="text" class="TextBox Money" maxlength="15" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_cont_cost&#39;);" id="min_cont_cost" name="min_cont_cost" value="">
								至
								<input type="text" class="TextBox Money" maxlength="15" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_cont_cost&#39;);" id="max_cont_cost" name="max_cont_cost" value="">
								<input type="hidden" id="hid_min_cont_cost" value="">
								<input type="hidden" id="hid_max_cont_cost" value="">
			    			</td>
							<th class="c2">
			        			<input type="checkbox" name="cb_foll" id="cb_foll">
			        			跟单员
			        		</th>
			    			<td class="c3">
			        			<input type="text" class="TextBox readonly" readonly="true" maxlength="15" name="foll_name" id="foll_name" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_foll&#39;);" value="">
			        			<img class="imgIconButton" src="../images/make-a.gif" onclick="selectStafferName(&#39;foll_id&#39;,&#39;foll_name&#39;,&#39;cb_foll&#39;);">
								<input type="hidden" id="hid_foll_name" value="">
								<input type="hidden" id="foll_id" value="">
			    			</td>
			    		</tr>
			    		<tr>
			    			<th class="c1">
			        			<input type="checkbox" name="cb_prof_cost" id="cb_prof_cost">
			        			毛利
			        		</th>
			    			<td>
			        			<input type="text" class="TextBox Money" maxlength="15" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_prof_cost&#39;);" id="min_prof_cost" name="min_prof_cost" value="">
								至
								<input type="text" class="TextBox Money" maxlength="15" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_prof_cost&#39;);" id="max_prof_cost" name="max_prof_cost" value="">
								<input type="hidden" id="hid_min_prof_cost" value="">
								<input type="hidden" id="hid_max_prof_cost" value="">
			    			</td>
			    			<th class="c2">
			        			<input type="checkbox" name="cb_desi" id="cb_desi">
			        			设计员
			        		</th>
			    			<td class="c3">
			        			<input type="text" class="TextBox readonly" readonly="true" maxlength="15" name="desi_name" id="desi_name" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_desi&#39;);" value="">
								<img class="imgIconButton" src="../images/make-a.gif" onclick="selectStafferName(&#39;desi_id&#39;,&#39;desi_name&#39;,&#39;cb_desi&#39;);">
								<input type="hidden" id="desi_id" value="">
								<input type="hidden" id="hid_desi_name" value="">
			    			</td>
	                	</tr>
	                	<tr>
	                		<th class="c1">
			        			<input type="checkbox" name="cb_prof_perc" id="cb_prof_perc">
			        			毛利率
			        		</th>
			    			<td>
			        			<input type="text" class="TextBox Money" maxlength="15" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_prof_perc&#39;);" id="min_prof_perc" name="min_prof_perc" value="">%
								至
								<input type="text" class="TextBox Money" maxlength="15" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_prof_perc&#39;);" id="max_prof_perc" name="max_prof_perc" value="">%
								<input type="hidden" id="hid_min_prof_perc" value="">
								<input type="hidden" id="hid_max_prof_perc" value="">
	                        </td>
			    			<th class="c2">
			        			<input type="checkbox" name="cb_crea" id="cb_crea">
			        			开单人
			        		</th>
			    			<td class="c3">
			        			<input type="text" class="TextBox readonly" readonly="true" maxlength="15" name="crea_name" id="crea_name" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_crea&#39;);" value="">
								<img class="imgIconButton" src="../images/make-a.gif" onclick="selectStafferName(&#39;crea_id&#39;,&#39;crea_name&#39;,&#39;cb_crea&#39;);">
								<input type="hidden" id="hid_crea_name" value="">
								<input type="hidden" id="crea_id" value="">
			    			</td>
	                	</tr>
	                	<tr>
	                		<th class="c1">
			    				<input type="checkbox" name="cb_ts" id="cb_ts" checked="true">
	                        	账套
			    			</th>
			    			<td class="c1">
			    				<select name="ts_id" id="ts_id" onfocus="doAutoCheck(&#39;cb_ts&#39;);">
				    				<option value="0">==请选择账套==</option>
				    				
									<option value="1" selected="">新异</option>
									<option value="2">网络公司</option>
								</select>
			    			</td>
			    			<th class="c2">
			    				<input type="checkbox" name="cb_dep" id="cb_dep">
			        			部门
			    			</th>
			    			<td class="c3">
			    				<select name="department" id="department" onfocus="doAutoCheck(&#39;cb_dep&#39;);">
	                            	<option value="0">==请选择==</option>
	                            	
<option value="1">易凯管理员</option>
<option value="13">总经办</option>
<option value="22">&nbsp;|--财务</option>
<option value="14">新异店</option>
<option value="15">&nbsp;|--客服</option>
<option value="23">&nbsp;|--设计</option>
<option value="24">&nbsp;|--业务</option>
<option value="16">业务来源</option>
<option value="17">标识加工车间</option>
<option value="21">合作伙伴</option>
<option value="32">标识汇运营部</option>
<option value="33">财务部</option>
	                        	</select>
			    			</td>
	                	</tr>
					</tbody></table>
					<div class="OptionOrderBy">
	                	<input type="checkbox" name="cb_order" id="cb_order">
	                    	排序类型
	                    <select name="order_by" id="order_by" onfocus="doAutoCheck(&#39;cb_order&#39;);">
	                        <option value="">==请选择==</option>
	                        <option value="ORDER_DATE">订货日期</option>
	                        <option value="BILL_CODE">单号</option>
	                    </select>
	                    <select name="order_sc" id="order_sc" onfocus="doAutoCheck(&#39;cb_order&#39;);">
	                        <option value="ASC">升序</option>
	                        <option value="DESC">降序</option>
	                    </select>
	                    <span class="fr"><a href="javascript:;" id="lnkHiddenOption">隐藏查询选项</a></span>
	                </div>
				</div>
			</div>
			
			<!-- 提示信息显示栏 -->
	        <div class="MsgBar">
	            
<table width="98%" border="0" cellpadding="0" cellspacing="0">
	<tbody><tr id="errorMsgTr" style="display:none">
	  <td>
	  	<div class="msg-error" id="errorMsgTd">
	  	
	  	</div>
	  </td>
	</tr>
</tbody></table>
	        </div>

			<!-- 上栏 分页、操作等 -->
			
	        <div class="TopToolBar">
	            <table class="ListNoteInfo" cellpadding="0" cellspacing="0">
	            	<tbody><tr>
	                	<td>
            				<span>毛利小计：23990.00元</span>
            				<span>毛利率：100.00%</span>
	                	</td>
	            	</tr>
	            </tbody></table>
			</div>
			

      		<div class="table-list">
		        <table width="100%">
		          	<tbody><tr>
						<th width="10%" rowspan="2">客户
						</th><th width="8%" rowspan="2">订货日期
						</th><th width="10%" rowspan="2">单号
						</th><th width="14%" rowspan="2">摘要
						</th><th width="14%" colspan="2">收入
						</th><th width="18%" colspan="3">成本
						</th><th width="7%" rowspan="2">毛利
						</th><th width="5%" rowspan="2">毛利率
						</th><th width="7%" rowspan="2">已收金额
						</th><th width="7%" rowspan="2">尚欠金额
		          	</th></tr>
				  	<tr>
						<th width="7%">合同金额
						</th><th width="7%">已调账
						</th><th width="6%">材料
						</th><th width="6%">外协
						</th><th width="6%">费用
		          	</th></tr>
					
					
					
					<tr class="query_list_data_trSelected" style="color:#000000" defaultfontcolor="#000000" index="1" ondblclick="javascript:DoubleClick(this)" onclick="javascript:ClickCheck(this)" onmouseout="javascript:mouseout(this)" onmouseover="javascript:mouseover(this)">
						<td>郑州中力力宝</td>
						<td>2017-07-07</td>
						<td>
							<input type="radio" onclick="javascript:ClickCheck(this);" name="query_checkbox" value="3284" style="display:none">
							<a href="javascript:showRelBill(&#39;E(1)2017070040&#39;);">E(1)2017070040</a>
						</td>
						<td>标牌配件  门市自提</td>
						<td align="right">3</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right"><a href="javascript:showDetail(3284);">3</a></td>
						<td align="right">100%</td>
						<td align="right">0</td>
						<td align="right">3</td>
					</tr>
					
					
					
					<tr class="query_list_data_tr2" style="color:#000000" defaultfontcolor="#000000" index="2" ondblclick="javascript:DoubleClick(this)" onclick="javascript:ClickCheck(this)" onmouseout="javascript:mouseout(this)" onmouseover="javascript:mouseover(this)">
						<td>通许大奎广告</td>
						<td>2017-07-07</td>
						<td>
							<input type="radio" onclick="javascript:ClickCheck(this);" name="query_checkbox" value="3278" style="display:none">
							<a href="javascript:showRelBill(&#39;E(1)2017070034&#39;);">E(1)2017070034</a>
						</td>
						<td>型材销售 长通物流 通许 代收130元</td>
						<td align="right">130</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right"><a href="javascript:showDetail(3278);">130</a></td>
						<td align="right">100%</td>
						<td align="right">0</td>
						<td align="right">130</td>
					</tr>
					
					
					
					<tr class="query_list_data_tr1" style="color:#000000" defaultfontcolor="#000000" index="3" ondblclick="javascript:DoubleClick(this)" onclick="javascript:ClickCheck(this)" onmouseout="javascript:mouseout(this)" onmouseover="javascript:mouseover(this)">
						<td>郑州中力恒源王磊</td>
						<td>2017-07-07</td>
						<td>
							<input type="radio" onclick="javascript:ClickCheck(this);" name="query_checkbox" value="3277" style="display:none">
							<a href="javascript:showRelBill(&#39;E(1)2017070033&#39;);">E(1)2017070033</a>
						</td>
						<td>型材销售 工厂自提</td>
						<td align="right">6280</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right"><a href="javascript:showDetail(3277);">6280</a></td>
						<td align="right">100%</td>
						<td align="right">0</td>
						<td align="right">6280</td>
					</tr>
					
					
					
					<tr class="query_list_data_tr2" style="color:#000000" defaultfontcolor="#000000" index="4" ondblclick="javascript:DoubleClick(this)" onclick="javascript:ClickCheck(this)" onmouseout="javascript:mouseout(this)" onmouseover="javascript:mouseover(this)">
						<td>焦作鸿涛广告</td>
						<td>2017-07-07</td>
						<td>
							<input type="radio" onclick="javascript:ClickCheck(this);" name="query_checkbox" value="3275" style="display:none">
							<a href="javascript:showRelBill(&#39;E(1)2017070031&#39;);">E(1)2017070031</a>
						</td>
						<td>东厂 快递发货</td>
						<td align="right">126</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right"><a href="javascript:showDetail(3275);">126</a></td>
						<td align="right">100%</td>
						<td align="right">0</td>
						<td align="right">126</td>
					</tr>
					
					
					
					<tr class="query_list_data_tr1" style="color:#000000" defaultfontcolor="#000000" index="5" ondblclick="javascript:DoubleClick(this)" onclick="javascript:ClickCheck(this)" onmouseout="javascript:mouseout(this)" onmouseover="javascript:mouseover(this)">
						<td>邯郸艺真广告</td>
						<td>2017-07-06</td>
						<td>
							<input type="radio" onclick="javascript:ClickCheck(this);" name="query_checkbox" value="3273" style="display:none">
							<a href="javascript:showRelBill(&#39;E(1)2017070030&#39;);">E(1)2017070030</a>
						</td>
						<td>标牌型材 长通物流 邯郸 代收1706+677元</td>
						<td align="right">2383</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right"><a href="javascript:showDetail(3273);">2383</a></td>
						<td align="right">100%</td>
						<td align="right">0</td>
						<td align="right">2383</td>
					</tr>
					
					
					
					<tr class="query_list_data_tr2" style="color:#000000" defaultfontcolor="#000000" index="6" ondblclick="javascript:DoubleClick(this)" onclick="javascript:ClickCheck(this)" onmouseout="javascript:mouseout(this)" onmouseover="javascript:mouseover(this)">
						<td>郑州鸿福广告</td>
						<td>2017-07-05</td>
						<td>
							<input type="radio" onclick="javascript:ClickCheck(this);" name="query_checkbox" value="3271" style="display:none">
							<a href="javascript:showRelBill(&#39;E(1)2017070029&#39;);">E(1)2017070029</a>
						</td>
						<td>标牌 门店自提</td>
						<td align="right">1125</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right"><a href="javascript:showDetail(3271);">1125</a></td>
						<td align="right">100%</td>
						<td align="right">0</td>
						<td align="right">1125</td>
					</tr>
					
					
					
					<tr class="query_list_data_tr1" style="color:#000000" defaultfontcolor="#000000" index="7" ondblclick="javascript:DoubleClick(this)" onclick="javascript:ClickCheck(this)" onmouseout="javascript:mouseout(this)" onmouseover="javascript:mouseover(this)">
						<td>郑州新天地</td>
						<td>2017-07-05</td>
						<td>
							<input type="radio" onclick="javascript:ClickCheck(this);" name="query_checkbox" value="3270" style="display:none">
							<a href="javascript:showRelBill(&#39;E(1)2017070028&#39;);">E(1)2017070028</a>
						</td>
						<td>东厂  门店自提</td>
						<td align="right">760</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right"><a href="javascript:showDetail(3270);">760</a></td>
						<td align="right">100%</td>
						<td align="right">760</td>
						<td align="right">0</td>
					</tr>
					
					
					
					<tr class="query_list_data_tr2" style="color:#000000" defaultfontcolor="#000000" index="8" ondblclick="javascript:DoubleClick(this)" onclick="javascript:ClickCheck(this)" onmouseout="javascript:mouseout(this)" onmouseover="javascript:mouseover(this)">
						<td>荥阳索成广告</td>
						<td>2017-07-05</td>
						<td>
							<input type="radio" onclick="javascript:ClickCheck(this);" name="query_checkbox" value="3269" style="display:none">
							<a href="javascript:showRelBill(&#39;E(1)2017070027&#39;);">E(1)2017070027</a>
						</td>
						<td>标牌 门店自提</td>
						<td align="right">380</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right"><a href="javascript:showDetail(3269);">380</a></td>
						<td align="right">100%</td>
						<td align="right">0</td>
						<td align="right">380</td>
					</tr>
					
					
					
					<tr class="query_list_data_tr1" style="color:#000000" defaultfontcolor="#000000" index="9" ondblclick="javascript:DoubleClick(this)" onclick="javascript:ClickCheck(this)" onmouseout="javascript:mouseout(this)" onmouseover="javascript:mouseover(this)">
						<td>四维广告</td>
						<td>2017-07-05</td>
						<td>
							<input type="radio" onclick="javascript:ClickCheck(this);" name="query_checkbox" value="3267" style="display:none">
							<a href="javascript:showRelBill(&#39;E(1)2017070026&#39;);">E(1)2017070026</a>
						</td>
						<td>东厂 门店自提</td>
						<td align="right">780</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right"><a href="javascript:showDetail(3267);">780</a></td>
						<td align="right">100%</td>
						<td align="right">780</td>
						<td align="right">0</td>
					</tr>
					
					
					
					<tr class="query_list_data_tr2" style="color:#000000" defaultfontcolor="#000000" index="10" ondblclick="javascript:DoubleClick(this)" onclick="javascript:ClickCheck(this)" onmouseout="javascript:mouseout(this)" onmouseover="javascript:mouseover(this)">
						<td>郑州市紫弘广告</td>
						<td>2017-07-04</td>
						<td>
							<input type="radio" onclick="javascript:ClickCheck(this);" name="query_checkbox" value="3266" style="display:none">
							<a href="javascript:showRelBill(&#39;E(1)2017070025&#39;);">E(1)2017070025</a>
						</td>
						<td>标牌 门市自提</td>
						<td align="right">300</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right">0</td>
						<td align="right"><a href="javascript:showDetail(3266);">300</a></td>
						<td align="right">100%</td>
						<td align="right">0</td>
						<td align="right">300</td>
					</tr>
					   
				</tbody></table> 
			</div>
      		<!-- 底栏 分页、操作等 -->
	        <div class="BottomToolBar ClearFix">
			    	
    <div class="table-bot">
    	
    	
    	 
    	  <img src="../images/but001.gif">
    	  <img src="../images/but002.gif">
    	    	
    	第 <input type="text" name="pageNumber" style="width:30px" value="1" onkeydown="javascript:doJump(this.value);" class="TextBox"> 页 
    	共3页
		
        <a style="cursor:pointer" onclick="javascript:doGo(&quot;2&quot;);"><img src="../images/but003.gif"></a>
        <a style="cursor:pointer" onclick="javascript:doGo(&quot;3&quot;);"><img src="../images/but004.gif"></a>
		
		
    </div>
	        </div>
			
		</div>
	</div>
	
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tbody><tr>
			<td align="center" height="0">
				<iframe name="detailFrm" id="detailFrm" scrolling="no" border="0" frameborder="0" height="0" width="100%" src="../images/saved_resource.html"></iframe>
			</td>
		</tr>
	</tbody></table>
	
</div>


<script type="text/javascript">
	function ChangeWindowSize( container, maxWidth ){
	    setTimeout( function(){
	        var w1 = document.documentElement.clientWidth-40;
	        if( w1>maxWidth ) w1 = maxWidth;
	        else if( w1<870 ) w1 = 860;
	        container.style.width = w1+'px';
	    }, 300 );
	}
	var IsAdvSearch = false;
	(function(){
		doInit();
	    var ListContainer = document.getElementById('ListContainer');
	    ChangeWindowSize( ListContainer, 2020 );    // 超过 1280 的最大 1260 ，不全部铺满
	
	    var lnkMoreOption   = document.getElementById('lnkMoreOption');
	    var lnkHiddenOption = document.getElementById('lnkHiddenOption');
	    lnkMoreOption.onclick = function(){
	    	IsAdvSearch = true;
	        document.getElementById('dvMoreOptionBox').style.display = 'block';
	        document.getElementById('cb_order_date').style.visibility = 'visible';
	        this.style.visibility = 'hidden';
	    };
	    lnkHiddenOption.onclick = function(){
	    	IsAdvSearch = false;
	        document.getElementById('dvMoreOptionBox').style.display = 'none';
	        document.getElementById('cb_order_date').style.visibility = 'hidden';
	        lnkMoreOption.style.visibility = 'visible';
	    };
	})();
</script>
</body></html>